using System;
namespace RollManager.Library
{
    [Serializable]
    public abstract class ItemBase
    {
        [NonSerialized]
        public const string NAME_PROPERTY = "ItemName";

        public int Id;
        public string Name;

        public string ItemName
        {
            get
            {
                return Name;
            }
        }

        protected void CopyTo( ItemBase newItem )
        {
            newItem.Id = Id;
            newItem.Name = Name;
        }
    }
}
